learn-grid[width, height]
learn-grid[width, height, operator]
learn a grid of specified width and height
all cells initialized to zero, with respect to operator "operator"
if operator is not specified, use "value"
and we learn all direction operators, N, NE, E, SE, S, SW, W, NW, that don't point outside the grid